<script setup>
import SideBar from './SideBar.vue'
import NavBar from './NavBar.vue'
import Footer from './Footer.vue'
</script>
<template>
  <div class="common-layout">
    <el-container>
      <el-aside width="100px">
        <SideBar></SideBar>
      </el-aside>
      <el-container>
        <el-header>
          <NavBar></NavBar>
        </el-header>
        <el-main>
          <RouterView></RouterView>
        </el-main>
        <el-footer>
          <Footer></Footer>
        </el-footer>
      </el-container>
    </el-container>
  </div>
</template>

<style lang="less" scoped>
body{
  margin: 0 !important;
}
.common-layout{
  background-color: rgb(241, 245, 247);
}
.el-header {
  background-color: white;
}

.el-aside {
  min-height: 100vh;
  background-color: black;
}
</style>
  